package com.hypo.controller;

import com.hypo.annotation.LogOperation;
import com.hypo.pojo.OperateLog;
import com.hypo.pojo.PageResult;
import com.hypo.pojo.Result;
import com.hypo.service.LogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/log")
public class LogController {
    @Autowired
    private LogService logService;

    /**
     * 日志列表查询
     */
    @GetMapping("/page")
    public Result page(Integer page, Integer pageSize) {
        PageResult list = logService.page(page, pageSize);
        return Result.success(list);
    }
}
